﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QD.Validate
{
    public class ValidateResult
    {
        public Boolean Success { get; private set; }

        List<String> _errors = new List<string>();
        public String[] Errors { get { return _errors.ToArray(); } }
        public ValidateResult() { Success = true; }
        public void AddErrors(String message)
        {
            Success = false;
            _errors.Add(message);
        }

    }
}
